xend: pass-through: fix regression in the ordering of the output of xm pci list
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 21 Jul 2009 13:26:52 +0000 (14:26 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 21 Jul 2009 13:26:52 +0000 (14:26 +0100)
changeset "python: Remove tab indents" (19937:e845326ae203)
introduces a minor regression in the multi-function PCI pass-through
code by causing bogus return values from the sort function
which is used to order the output of "xm pci list".

Signed-off-by: Simon Horman <horms@verge.net.au>
tools/python/xen/xm/main.py

index e557429d3d6ca8f5434d9dd3f073c543b2538841..6397382f88780805ef1ed0cbb135b87540a9fe3a 100644 (file)
@@ -2234,7 +2234,7 @@ def xm_pci_list(args):
             vdevfn = AUTO_PHP_SLOT
         else:
             vdevfn = x['vdevfn']
-            return (vdevfn << 32) | \
+        return (vdevfn << 32) | \
                    PCI_BDF(x['domain'], x['bus'], x['slot'], x['func'])
     devs.sort(None, f)